package com.ddzh.user1.controller;

import com.ddzh.user1.config.RedisProperties;
import com.netflix.discovery.converters.Auto;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("config")
public class ConfigController {

    @Autowired
    RedisProperties redisProperties;
    @GetMapping("prop")
    public RedisProperties redisProperties(){
        return redisProperties;
    }
}
